package com.honda.util.core;

import org.springframework.web.servlet.view.freemarker.FreeMarkerView;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;


/**
 * 
 * @ClassName:  RichFreeMarkerView   
 * @Description:(freemarker视图解析)   
 * @author: shikong
 * @date:   2018年7月10日 上午9:11:38      
 * @Copyright: 2018
 */
public class RichFreeMarkerView extends FreeMarkerView {
	
	public static final String CONTEXT_PATH = "base";

	
	@SuppressWarnings("unchecked")
	protected void exposeHelpers(Map model, HttpServletRequest request)
			throws Exception {
		super.exposeHelpers(model, request);
		model.put(CONTEXT_PATH, request.getContextPath());
	}
}